
import sys
#175.42.83.152 - - [20/Sep/2013:00:10:12 +0800] "POST /wp-comments-post.php HTTP/1.1" 302 509 "http://dongxicheng.org/structure/segment-tree/" "Mozilla/5.0 (Windows NT 5.1; rv:23.0) Gecko/20100101 Firefox/23.0"

for line in sys.stdin:
    line = line.strip()
    words = filter(lambda word: word, line.split())
    # comment
    index = 0
    ip = ''
    datestamp = ''
    url = ''
    for word in words:
        # index : 0, ip; 3, datestamp; 6, url;
        if index == 0:
            ip = word
        elif index == 3:
            datestamp = word[1:]
        elif index == 6:
            url = word
        print( '%s \t %s'% (word, index))
        index = index +1
    print ('ip=%s|time=%s|path=%s' % (ip, datestamp, url))
    print ('---------- PRINT DOWN............')